package com.own.business.pay.entity.query;

import com.own.component.common.base.entity.BaseQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * BillHistoryQuery
 *
 * @author chenxueli
 * @date 2023-08-28 17:15:11
 */
@Schema(title = "账单信息" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class BillHistoryQuery extends BaseQuery implements Serializable {

    @Schema(title = "用户id")
    private Long userId;

    @Schema(title = "支付类型")
    private String payType;

    @Schema(title = "流水类型（1=收入 2=支出 3=退款）")
    private Integer type;

    @Schema(title = "账单类型")
    private String billType;

    @Schema(title = "商户订单号")
    private String outTradeNo;

    @Schema(title = "业务类型")
    private String businessType;

    @Schema(title = "商户退款单号")
    private String outRefundNo;

    @Schema(title = "状态 1=待支付 2=已完成 4=主动关闭取消 5=超时取消")
    private Integer status;

    @Schema(title = "状态 1=待支付 2=已完成 4=主动关闭取消 5=超时取消", hidden = true)
    private List<Integer> statuses;

    @Schema(title = "状态 1=待支付 2=已完成 4=主动关闭取消 5=超时取消", hidden = true)
    private List<Integer> notStatuses;

    @Schema(title = "订单标题")
    private String subject;

    @Schema(title = "订单附加信息")
    private String body;

    @Schema(title = "年份")
    private String year;

    @Schema(title = "月份")
    private String month;

    @Schema(title = "开始日期")
    private LocalDate startDate;

    @Schema(title = "结束日期")
    private LocalDate endDate;

}
